package com.business.api.official.toursism.websitehotel.service;

import com.business.api.official.toursism.websitehotel.dto.WebsiteHotelApiDTO;
import com.business.api.official.toursism.websitehotel.from.WebsiteHotelApiSaveFrom;
import com.business.api.official.toursism.websitehotel.from.WebsiteHotelApiUpdateFrom;
import com.business.api.official.toursism.websitehotel.query.WebsiteHotelApiPageQuery;
import com.business.api.official.toursism.websitehotel.query.WebsiteHotelApiQuery;
import com.business.api.official.toursism.websitehotel.vo.*;
import com.business.api.official.toursism.websitehotel.vo.data.WebsiteHotelApiDetailData;
import com.business.system.official.toursism.websitehotel.entity.WebsiteHotel;
import com.seed.core.exception.ServiceException;
import com.seed.core.pojo.service.SeedApiService;

/**
 * @description 乌镇酒店
 * @author CodeGenerator
 * @date   2025-01-25
 * @version V1.0
 */
public interface WebsiteHotelApiService extends SeedApiService<WebsiteHotel>{

    /**
     * 持久化
     *
     * @param websiteHotelFrom 需要保存的对象
     * @return id，如果保存失败返回空字符串
     * @throws ServiceException 业务层异常
     */
    WebsiteHotelApiDTO save(WebsiteHotelApiSaveFrom websiteHotelFrom) throws ServiceException;

    /**
     * 部分更新
     *
     * @param websiteHotelFrom 需要更新的对象
     * @return 是否成功
     * @throws ServiceException 业务层异常
     */
    WebsiteHotelApiDTO updateSelectiveById(WebsiteHotelApiUpdateFrom websiteHotelFrom) throws ServiceException;

    /**
     * 获取全部
     *
     * @param query 查询条件
     * @return 详情VOList
     * @throws ServiceException 业务层异常
     */
    WebsiteHotelApiDetailListVO listAll(WebsiteHotelApiQuery query) throws ServiceException;

    /**
     * 简略对象条件查询
     *
     * @param query 查询条件
     * @return 查询出来的简略对象
     * @throws ServiceException 业务层异常
     */
    WebsiteHotelApiBriefPageVO getBriefPageVO(WebsiteHotelApiPageQuery query) throws ServiceException;

    /**
     * 详细对象条件查询
     *
     * @param query 查询条件
     * @return 查询出来的详细对象
     * @throws ServiceException 业务层异常
     */
    WebsiteHotelApiDetailPageVO getDetailPageVO(WebsiteHotelApiPageQuery query) throws ServiceException;
}
